<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "/common/taglibs.ftl">
<#include "/common/context.ftl">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Uman后台管理中心</title>
<link type="text/css" rel="stylesheet" href="${ctx}/css/dl.css">
<script type="text/javascript" language="javascript" src="${ctx}/jquery/jquery-1.4.2.min.js"></script>
</head>
<body>
<div class="dl_top">
	 <div class="dl_logo"><img src="${ctx}/img/uman.jpg" align="absmiddle"></div>
	 <div class="dl_logo_right">客服热线：888-8888-8888</div>
</div>
<div class="banner_bg">
  <div class="dl_banner">
      <div class="dl_ban_top">
	       你够优秀吗？<br />
            Uman网优秀人才的聚集地！<br />
            不一样的生活，一样的精彩！
	  </div>
  </div>
</div>
<div class="dl_content">
     <div class="dl_le_regsiter">
	    <div class="error"><span id="errorMsg" style="color:red"></span></div>
	    <ul>
       <form id="loginForm" action="${ctx}/j_spring_security_check" method="post">
	      <li><div class="dl_span">用户名</div> <input type="text"id='j_username' name='j_username'  value='${lastUserName!""}' class="dl_input" /> </li>
		  <li><div class="dl_span">密  码</div> <input type="password" id='j_password' name='j_password' class="dl_input" /><span style="padding-left:10px;"><a href="#">忘记密码？</a></span> </li>
		  <li>
		    <div class="dl_span"></div> <input type="checkbox" name="checkbox" name="_spring_security_remember_me" style="vertical-align:bottom" />  两周内自动登陆 <img src="${ctx}/img/dl_jz.jpg" align="absmiddle">
		   </li>
		   <script type="text/javascript">
		   		function loginCheck(){
		   			if($('#j_username').val()==''){
		   				$('#errorMsg').text('请输入用户名！');
								return false;
		   			}
		   			if($('#j_password').val()==''){
		   				$('#errorMsg').text('请输入密码！');
								return false;
		   			}
		   			$.ajax({
		   				type:"POST",
						url:context+'/manager/account!checkUser.action', 
						data:{
							'username':$('#j_username').val(),
							'password':$('#j_password').val()
						},
						success:function(text){
							if(text!='success'){
								$('#errorMsg').text(text);
								return false;
							}else{
								$('#loginForm').submit();
							}
						}
		   			});
		   		}
		   </script>
		  <li><div class="dl_span"></div> <input type="button" value="登  录" onclick="loginCheck()" class="dl_button"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/login.action">首  页</a>
		  </li>
       </form>
	   </ul>
	 </div>
	 <div class="dl_ri_text">
	       <div class="dl_box pdl">
			在这里你可以与各行各业的优秀人才成为好友，共同交流：<br/>
	       	邂逅一见钟情的TA<br/>
	       	寻找志同道合的TA<br/>
	       	和行业好手共同探讨专业知识<br/>
	       	与驴友掮客游山玩水寻乐联欢<br/>
		   </div>
		   <div class="dl_msg">
		    	尽在Uman网
		   </div>
	 </div>
	 <div class="divline"></div>
	 <div class="dl_footer pdl">
	      <ul>
		      <li><a href="#">关于Uman</a>&nbsp; |&nbsp; <a href="#">服务条款</a> &nbsp;| &nbsp;<a href="#">客服中心</a></li>
			  <li class="bq_li">© 2010 - 2011 Uman Inc. All Rights Reservedd</li>
		  </ul>
	 </div>
</div>
<script type="text/javascript">  
     function changeValidateCode(obj) {  
         //获取当前的时间作为参数，无具体意义  
         var timenow = new Date().getTime();  
         //每次请求需要一个不同的参数，否则可能会返回同样的验证码  
         //这和浏览器的缓存机制有关系，也可以把页面设置为不缓存，这样就不用这个参数了。  
         obj.src="${ctx}/servlet/captcha.jpg?d="+timenow;  
     }  
</script>
<script type="text/javascript" language="javascript" src="common/clearCookie.jsp"></script>
</body>

</html>